package com.wanmait.employment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
* Created by Mybatis Generator 2023/05/25
*/
@Data
@TableName(value = "address")
public class Address {
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "title")
    private String title;

    @TableField(value = "cityList",exist = false)
    private List<Address> cityList;

    @TableField(value = "addressList",exist = false)
    private List<Address> addressList;
    /**
     * 大区ID
     */
    @TableField(value = "adcode")
    private String adcode;

    @TableField(value = "citycode")
    private String citycode;

    @TableField(value = "level")
    private Boolean level;

    /**
     * 中心坐标
     */
    @TableField(value = "center")
    private String center;

    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 状态1启用2禁用
     */
    @TableField(value = "status")
    private Byte status;

    @TableField(value = "ctime")
    private Date ctime;

    @TableField(value = "mtime")
    private Date mtime;

    @TableField(exist = false)
    private Address province;
    @TableField(exist = false)
    private Address city;

    public static final String COL_TITLE = "title";

    public static final String COL_ADCODE = "adcode";

    public static final String COL_CITYCODE = "citycode";

    public static final String COL_LEVEL = "level";

    public static final String COL_CENTER = "center";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_STATUS = "status";

    public static final String COL_CTIME = "ctime";

    public static final String COL_MTIME = "mtime";
}